<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet"  th:href="@{/css/file.css}" />
    <script th:src="@{/js/jquery-3.1.1.min.js}"></script>
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
</head>
<body>
<br><br>
<form class="layui-form" th:action="@{/admin/type/class/updatesubmit}" method="post" >
    <input type="hidden" name="id" th:value="${class.getId()}">
    <div class="layui-form-item">
        <label class="layui-form-label">班级名</label>
        <div class="layui-input-inline">
            <input type="text" name="class_name" required  lay-verify="required" th:value="${class.getClass_name()}" placeholder="请输入班级名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit  id="layui-submit" type="submit">立即提交</button>
        </div>
    </div>
</form>
</body>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
    });

</script>
</html>